#include <iostream>
#include "Rectangle.h"

using namespace std;

Rectangle::Rectangle ( const double &x, const double &y ){
    a = x;
    b = y;
    if ( x > y ) {
        length = x;
        width = y;
    }
    else {
        length = y;
        width = x;
    }
}

double Rectangle::getLength () const {
    return length;
}

double Rectangle::getWidth () const {
    return width;
}

double Rectangle::getArea () const {
    return a * b;
}

double Rectangle::getPerimeter () const {
    return ( a + b ) * 2;
}

void Rectangle::draw () const {
    cout << "Ve hinh chu nhat chieu dai length chieu rong width";
}